package com.sjgtw.cloud.constant;

public class SjgtwConstont {

    public final static String FREEZE_TYPE_UP = "10mm以上";
    public final static String FREEZE_TYPE_DOWN = "10mm以下";

    public enum RainfallWarningStatus {
        notDispose("notDispose", "未处置"),
        disposing("disposing", "处置中"),
        disposed("disposed", "已处置"),
        ;
        /**
         * code值
         */
        private final String code;

        /**
         * 描述
         */
        private final String value;

        RainfallWarningStatus(String code, String value) {
            this.code = code;
            this.value = value;
        }

        public static String getValue(String code) {
            for (RainfallWarningStatus ele : values()) {
                if (ele.getCode().equals(code)) {
                    return ele.getValue();
                }
            }
            return null;
        }


        public String getCode() {
            return code;
        }

        public String getValue() {
            return value;
        }

    }


}
